<?php
/* @var $this ContactsController */
/* @var $model Contacts */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contacts-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
    'errorMessageCssClass'=>'alert alert-danger'
)); ?>

	<?php echo $form->errorSummary($model); ?>

    <div class="block">
        <div class="row">
            <?php echo $form->labelEx($model,'Заголовок страницы'); ?>
        </div>
        <div class="row">
            <?php echo $form->error($model,'title'); ?>
            <?php echo $form->textField($model,'title',array('class'=>'form-control')); ?>
        </div>
    </div>

    <div class="block">
        <div class="row">
            <?php echo $form->labelEx($model,'Список контактов'); ?>
        </div>
        <div class="row">
            <?php echo $form->error($model,'contacts'); ?>
            <?php echo $form->textArea($model,'contacts',array()); ?>
        </div>
    </div>

    <div class="block">
        <div class="row">
            <?php echo $form->labelEx($model,'Дополнительная информация'); ?>
        </div>
        <div class="row">
            <?php echo $form->error($model,'info'); ?>
            <?php echo $form->textArea($model,'info',array()); ?>
        </div>
    </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить', array('class' => 'btn btn-info')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->